package com.accp.server;

import com.accp.common.service.BaseService;
import com.accp.dao.ProductMapper;
import com.accp.entity.Product;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductService extends BaseService<Product> {
    @Autowired
    private ProductMapper productMapper;
    public List<Product> getList(int pageNum, int pageSize){
        PageHelper.startPage(pageNum,pageSize);
        return  productMapper.selectAll();
    }

}
